<div class="bjui-pageContent">
    <table class="table table-bordered" id="goods_spec_table1">
        <tr>
            <td colspan="2"><b>商品规格:</b></td>
        </tr>
        <tr>
            <td>网络:</td>
            <td>
                <button type="button" data-spec_id='5' data-item_id='11' class=" btn-default" >4G</button>
            </td>
        </tr><tr>
        <td>内存:</td>
        <td>
            <button type="button" data-spec_id='6' data-item_id='13' class="btn-default" >16G</button>
            <button type="button" data-spec_id='6' data-item_id='14' class="btn-default" >8G</button>
            <button type="button" data-spec_id='6' data-item_id='28' class="btn-default" >32G</button>
            <button type="button" data-spec_id='6' data-item_id='101' class="btn-default" >64G</button>
            <button type="button" data-spec_id='6' data-item_id='102' class="btn-default" >128G</button>
        </td>
    </tr><tr>
        <td>屏幕:</td>
        <td>
            <button type="button" data-spec_id='7' data-item_id='21' class="btn-default" >电容屏</button>
            <button type="button" data-spec_id='7' data-item_id='23' class="btn-default" >电阻屏</button>
        </td>
    </tr><tr>
        <td>颜色:</td>
        <td>
            <button type="button" data-spec_id='16' data-item_id='55' class="btn-default" >黑色</button>
            <button type="button" data-spec_id='16' data-item_id='56' class="btn-default" >白色</button>
            <button type="button" data-spec_id='16' data-item_id='57' class="btn-default" >金色</button>
            <button type="button" data-spec_id='16' data-item_id='99' class="btn-default" >银色</button>
            <button type="button" data-spec_id='16' data-item_id='100' class="btn-default" >玫瑰金</button>
        </td>
    </tr>
    </table>

    <div id="goods_spec_table2" style="margin-top:10px;"></div>



<script>
    $(function () {
        $("#goods_spec_table1 button").click(function(){
            if($(this).hasClass('btn-success')){
                $(this).removeClass('btn-success');
                $(this).addClass('btn-default');
            }else{
                $(this).removeClass('btn-default');
                $(this).addClass('btn-success');
            }
        });
    });
</script>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-default" data-icon="save"  >确定</button></li>
    </ul>
</div>